﻿{% extends "gma/base.html" %}
{% load mytag %}

<!-- CONTENT
  =====================================================================-->

{% block content %}

  <div class="weui-form">
    <div class="weui-form__text-area">
      <h2 class="weui-form__title">创建新礼物 </h2>
{#      <div class="weui-form__desc">图片地址不可以为空。</div>#}
    </div>

    <div class="weui-form__control-area">
      <div class="weui-cells__group weui-cells__group_form">
        <div class="weui-cells__title">礼物基本信息 </div>
        <div class="weui-cells weui-cells_form">
{#          <div class="weui-cell">#}
{#            <div class="weui-cell__hd"><label class="weui-label">APP包名</label></div>#}
{#            <div class="weui-cell__bd">#}
{#                <input class="weui-input" v-model="bundle_id" placeholder='请填写包名'>#}
{#            </div>#}
{#          </div>#}

          <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">礼物名称</label></div>
            <div class="weui-cell__bd">
                <input class="weui-input" v-model="gift_name" placeholder="请填写礼物名称">
            </div>
          </div>

          <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">图片地址</label></div>
            <div class="weui-cell__bd">
                <input class="weui-input" v-model="gift_icon" placeholder="请填写图标下载地址">
            </div>
          </div>

          <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">链接地址</label></div>
            <div class="weui-cell__bd">
                <input class="weui-input" v-model="gift_resource" placeholder="请填写资源下载地址">
            </div>
          </div>

          <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">礼物价格</label></div>
            <div class="weui-cell__bd">
                <input class="weui-input" v-model="gift_price" placeholder="请填写礼物价格" type="number" pattern="[0-9]*">
            </div>
          </div>

          <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">显示排位</label></div>
            <div class="weui-cell__bd">
                <input class="weui-input" v-model="gift_orderno" placeholder="请填写礼物的显示位" type="number" pattern="[0-9]*">
            </div>
          </div>
        </div>
      </div>
    </div>

    <div class="weui-form__tips-area">
      <p class="weui-form__tips">
        显示位越小的礼物显示越靠前。
      </p>
    </div>

    <div class="weui-form__opr-area">
      <a class="weui-btn weui-btn_primary" @click="newGift()">确定</a>
{#      <a class="weui-btn weui-btn_default" @click="cancel()">取消</a>#}
    </div>
    <div class="weui-form__tips-area">
      <p class="weui-form__tips">
      </p>
    </div>

    <div class="weui-form__extra-area">
      <div class="weui-footer">
        <p class="weui-footer__links">
            <a href="{% url 'gma:home' %}" class="weui-footer__link"> <span class="bottom-logo"> HaiBao </span> </a>
        </p>
        <p class="weui-footer__text">Copyright © 2019 HaiBao</p>
      </div>
    </div>
  </div>

<div class="page__ft">
    <a href="{% url 'gma:home' %}"> <span class="bottom-logo"> HiBao </span> </a>
</div>

{% endblock content %}


<!-- SCRIPT
  =====================================================================-->

{% block extra_js %}
<script> {% include 'gma/config/gift/config_new_gift.vue' %} </script>
{% endblock extra_js %}